= render :partial => "breadcrumb", :locals => { :action => '编辑' }
- content_for :sidebar do
  = render :partial => "sidebar"
    
- if !@product
  .alert 没有这个商品
- else
  %form.form-horizontal{:action => admin_product_path(@product.id), :method => :post}
    %input{:type => 'hidden', :value => 'put', :name => '_method'}
    .control-group
      %label.control-label{:for => 'name'}商品名称
      .controls
        %input{:type => :text, :name => 'product[name]', :value => @product.name}

    .control-group
      %label.control-label{:for => 'price'}商品价格
      .controls
        %input{:type => :text, :name => 'product[price]', :value => @product.price}

    .control-group
      .controls
        %button{:type => :submit, :class => 'btn btn-mini btn-success'}保存

